From: Florian Müllner Date: Tue, 31 Jul 2012 14:10:24 +0000 (+0200) Subject: message-tray: Add :overview pseudo class when in overview X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6152 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a8e6bfcb3dced7aac5efb204a6167455cf9f5e79;p=gnome-shell.git message-tray: Add :overview pseudo class when in overview The designers would like the message-tray to use different styles depending on whether it is shown in the overview or not, so use an :overview pseudo class as the top bar. --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index cf7afe09d..21d09bf19 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1550,6 +1550,7 @@ const MessageTray = new Lang.Class({ Main.overview.connect('showing', Lang.bind(this, function() { this._overviewVisible = true; + this.actor.add_style_pseudo_class('overview'); if (this._locked) { this._unsetClickedSummaryItem(); this._unlock(); @@ -1560,6 +1561,7 @@ const MessageTray = new Lang.Class({ Main.overview.connect('hiding', Lang.bind(this, function() { this._overviewVisible = false; + this.actor.remove_style_pseudo_class('overview'); if (this._locked) { this._unsetClickedSummaryItem(); this._unlock();